﻿using EYCmsAdmin.Domain.IDomainServices;
using EYCmsAdmin.Domain.Models;
using EYCmsAdmin.Presentation.IPresentationServices;

namespace EYCmsAdmin.Presentation.PresentationServices
{
    public class StudyGroupPresentationService : IStudyGroupPresentationService
    {
        private readonly IStudyGroupDomainService studyGroupDomainService;
        private readonly IEducationInstitutionDomainService educationInstitutionDomainService;

        public StudyGroupPresentationService(IStudyGroupDomainService studyGroupDomainService, IEducationInstitutionDomainService educationInstitutionDomainService)
        {
            this.studyGroupDomainService = studyGroupDomainService;
            this.educationInstitutionDomainService = educationInstitutionDomainService;
        }

        public StudyGroup Get(int id)
        {
            var s = educationInstitutionDomainService.GetEducationInstitution(1);
            return studyGroupDomainService.Get(id);
        }
    }
}